package com.bing.testNg;

import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;

import java.lang.reflect.Method;
import java.util.Iterator;

/**
 * Created by Administrator on 2016/11/21.
 */

public class Hello {
    @Test
    public void hello() {
        System.out.println("hello");
    }


    @Test(dataProviderClass = HelloData.class, alwaysRun = true, dataProvider = "test")
    public void data(int a, int b) {
        System.out.println("hello :" + a + " res: " + b);
    }
    @Test(dataProviderClass = HelloData.class, alwaysRun = true, dataProvider = "abc")
    public void abc(int a, int b) {
        System.out.println("hello :" + a + " res: " + b);
    }


}
